Component sample.cas2.login
In bundle org.nuxeo.runtime
Contributions
XML Source
<component name="sample.cas2.login">
<require>org.nuxeo.ecm.platform.ui.web.auth.defaultConfig</require>
<require>org.nuxeo.ecm.platform.ui.web.auth.WebEngineConfig</require>
<require>org.nuxeo.ecm.platform.login.Cas2SSO</require>
<!-- Include CAS2 into authentication chain, disabled by default.
To edit it, copy the templates/cas2, customize it in your own template and include this one
<extension target="org.nuxeo.ecm.platform.ui.web.auth.service.PluggableAuthenticationService"
point="chain">
<authenticationChain>
<plugins>
<plugin>BASIC_AUTH</plugin>
<plugin>CAS2_AUTH</plugin>
<plugin>ANONYMOUS_AUTH_FOR_CAS2</plugin>
<plugin>FORM_AUTH</plugin>
<plugin>WEBENGINE_FORM_AUTH</plugin>
<plugin>WEBSERVICES_AUTH</plugin>
</plugins>
</authenticationChain>
</extension>
-->
<!-- configure you CAS server parameters -->
<extension target="org.nuxeo.ecm.platform.ui.web.auth.service.PluggableAuthenticationService"
point="authenticators">
<authenticationPlugin name="CAS2_AUTH">
<needStartingURLSaving>true</needStartingURLSaving>
<loginModulePlugin>Trusting_LM</loginModulePlugin>
<parameters>
<parameter name="appURL">http://localhost:8080/nuxeo/nxstartup.faces</parameter>
<parameter name="serviceLoginURL">http://127.0.0.1:8080/cas/login</parameter>
<parameter name="logoutURL">http://127.0.0.1:8080/cas/logout</parameter>
<parameter name="serviceValidateURL">http://127.0.0.1:8080/cas/serviceValidate</parameter>
<parameter name="serviceKey">service</parameter>
<parameter name="ticketKey">ticket</parameter>
</parameters>
</authenticationPlugin>
<authenticationPlugin name="ANONYMOUS_AUTH_FOR_CAS2" enabled="true"
class="org.nuxeo.ecm.platform.ui.web.auth.cas2.AnonymousAuthenticatorForCAS2">
<loginModulePlugin>Trusting_LM</loginModulePlugin>
</authenticationPlugin>
</extension>
<!-- enable an anonymous user
<extension target="org.nuxeo.ecm.platform.usermanager.UserService"
point="userManager">
<userManager>
<users>
<anonymousUser id="Anonymous">
<property name="firstName">Anonymous</property>
<property name="lastName">User</property>
</anonymousUser>
</users>
</userManager>
</extension>
-->
</component>